package com.junhong.action;

import javax.annotation.Resource;

import com.junhong.entity.Teacher;
import com.junhong.service.TeacherService;

public class TeacherDeleteAction {

	private Integer id;

	@Resource
	private TeacherService teacherService;

	public void delete() {
		Teacher teacher = new Teacher(id, null, null, null, null, null);
		teacherService.delete(teacher);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

}
